<?php

namespace App\Http;

class Controller
{

    public function __construct()
    {
        global $app;

        $this->container = $app->getContainer();
    }

    // public function log($message)
    // {
    //     $logger = new \Monolog\Logger(getenv('LOGGER_NAME'));
    //
    //     $logger->pushProcessor(new \Monolog\Processor\IntrospectionProcessor());
    //
    //     $logger->pushHandler(
    //         (new \Monolog\Handler\RotatingFileHandler(getenv('LOGGER_PATH'), \Monolog\Logger::DEBUG))
    //         ->setFormatter(new \Monolog\Formatter\JsonFormatter)
    //     );
    //
    //     var_dump($logger);exit;
    //     return $logger;
    // }

}
